﻿import base.*;
import ui.*;
class base.base extends MovieClip
{
	//
	//text
	static var traceFormat:TextFormat;
	static var windowFormat:TextFormat;
	//
	//colour
	static var blue:Number = 1287332;
	static var white:Number = 16777215;
	static var black:Number = 000000;
	static var orange:Number = 13191700;
	static var red:Number = 11210768;
	static var green:Number = 3975750;
	static var grey:Number = 9803157;
	//
	//constants
	static var animated:Boolean = true;
	static var gap:Number = 10;
	static var stageHeight:Number = Stage.height - 7.5;
	static var stageWidth:Number = Stage.width - 7.5;
	//
	//Variable
	static var gripHeight:Number;
	static var settingsAreaY:Number;
	static var settingsAreaHeight:Number;
	static var settingsHeight:Number;

	//
	//Function used in app to send trace to this
	//
	public static function trace (text:Object)
	{
		var theParams:Array = arguments.splice(1, arguments.length-1);
		var lc:LocalConnection = new LocalConnection ();
		lc.send ('tracelog', 'tracer', text, theParams);
	}
	//
	// Start Point
	//
	public static function startPoint(__container:MovieClip, theType:String)
	{
		//Stuff for the stage
		Stage.scaleMode = "noScale";
		Stage.align = "cc";
		switch (theType)
		{
			case "tracer" :
				createTextFormats ();
				//Finished setting up, now to make the tracer
				__container.theTracer = new tracer (__container);
				break;
		}
	}
	public static function createTextFormats ()
	{
		//
		//
		//windowFormat
		//	font used on text fields in windows
		windowFormat = new TextFormat ();
		windowFormat.font = "Verdana";
		windowFormat.size = 12;
		windowFormat.align = "center";
		//
		//
		//traceFormat
		//	font for tracer box
		traceFormat = new TextFormat ();
		traceFormat.font = "Verdana";
		traceFormat.size = 12;
		traceFormat.align = "left";
		traceFormat.bold = true;
		//
		//
	}
}
